alphabet = new Alphabet(new Array('0', '1'), '0');
h = new State("H");
a0 = new Rule(Rule.MoveType.RIGHT, '1', "H");
a1 = new Rule(Rule.MoveType.RIGHT, '1', "H");
a = new State("A");
a.addRule('0', a0);
a.addRule('1', a1);
table = new RulesTable(new Array(a, h));
tape = new Tape(alphabet);
var range = tape.getTapeRange(-10, 10);
document.write(range);
document.write("<br>");
machine = new TuringMachine(tape, table);
machine.nextStep();
range = tape.getTapeRange(-10, 10);
document.write(range);
document.write("<br>");
document.write(machine.isHalted()?"ok":"not ok");